<template>
	<view class="card">
		<view>-</view>
		<view class="card-name">{{cardTitle}}</view>
		<view>-</view>
	</view>
</template>

<script>
	export default {
		name:"Card",
		// 接收组件传递的参数
		props:{
			cardTitle: String
		},
		data() {
			return {
				
			};
		}
	}
</script>

<style scoped>
.card{
	padding: 20rpx 0;
	display: flex;
	justify-content: center;
}
.card-name{
	padding: 0 20rpx;
	font-size: 32rpx;
	font-style: oblique;
}
</style>